package com.egao.common.module.counsel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.egao.common.core.web.PageParam;
import com.egao.common.module.counsel.entity.CounselTeacher;

import java.util.List;

/**
 * @author lym
 * @date 2022/1/24 17:13
 */
public interface CounselTeacherService extends IService<CounselTeacher> {

    /**
     * 分页查询
     * @param pageParam
     * @return
     */
    List<CounselTeacher> listPage(PageParam<CounselTeacher> pageParam);

    /**
     * 根据用户ID查询咨询师
     * @param userId 用户ID
     * @return CounselTeacher
     */
    CounselTeacher getByUserId(Integer userId);
}
